<%@page import="org.apache.commons.lang.StringUtils"%>
<%@page import="org.apache.commons.lang.time.DateFormatUtils"%>
<%@page import="org.springframework.util.CollectionUtils"%>
<%@page import="java.util.Collection"%>
<%@ include file="../common/common_include.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	List<TcaKnowledgefile> list = (List<TcaKnowledgefile>)request.getAttribute("list");
	List<TcaKnowledgefolder> folderList = (List<TcaKnowledgefolder>)request.getAttribute("folderList");
	WikiForm form = (WikiForm)request.getAttribute("command");
	String title = StringUtils.isNotBlank(form.getTitle())?form.getTitle():"";
	String folderId = StringUtils.isNotBlank(form.getFolderId())?form.getFolderId():"-1";
%>

<style>
	.wiki_view_search{
		padding-top:10px;
	}
	.wiki_view_search .label{
		
	}
	.wvs-item a{
		color:#333;
		font-size: 14px;
		text-decoration: none;
		height:28px;
		line-height: 28px;
	}
	.wvs-item a.catalog{
		color:#ccc;
	}
</style>

<div class="wiki_view_search">
	<span class="label">搜索结果：</span>
	<ul class="wvs-itemList">
		<%
			if(!CollectionUtils.isEmpty(list)){
				for(TcaKnowledgefile item:list){
					%>
						<li class="wvs-item">
							<a href="javascript:XF.WIKI.viewItem(<%=item.getSeqid()%>)"><%=item.getTitle()%></a>
							<a class="catalog" href="javascript:XF.WIKI.view_search('<%=item.getFolderid()%>')">[<%=(item.getFolderTitle()!="")?item.getFolderTitle():"" %>]</a>
						</li> 
					<%
				}
			}
		%>
  	</ul>
  	<div class="clear">&nbsp;</div>
</div>
<div class="pagination">
	<monggoTag:pagination 
	href="/news"
	pageSize="<%=form.getPageSize()%>" 
	totalRecord="<%=form.getTotalRecord() %>" 
	currentPage="<%=form.getPageNum() %>"
	>
	</monggoTag:pagination> 
</div>





























